Add ignore_broken_data config option
authorMichal Skvely <michal.sedlak@ubnt.com>
Mon, 29 Mar 2021 12:59:50 +0000 (14:59 +0200)
committerMichal Skvely <michal.sedlak@ubnt.com>
Mon, 29 Mar 2021 13:44:32 +0000 (15:44 +0200)
commita48d6496eb4943f510af549dfb7f5bf24ded6e4e
tree70a639e6aa9fc7f8d84012adc2ce5a1722848a2e
parent8cc0d129e8b96f91ef83cd14029c09f04619cea5
Add ignore_broken_data config option

The option will cause SiriDB to ignore broken or corrupted data that would otherwise prevent the server or database from fully loading.

This is useful for transient data on systems prone to hard resets, which might leave the database in an inconsistent state.
include/siri/cfg/cfg.h
siridb.conf
src/siri/cfg/cfg.c
src/siri/db/buffer.c
src/siri/db/shards.c